Skip to main content

Get Accounts

GET /api/v1/accounts

Description​

Retrieve a list of accounts based on various query parameters.

Path Parameters​

NameTypeDescription
NoneNo parameters

Query Parameters​

NameTypeDescription
accountByAccountNumbersstringAccount numbers separated by commas (e.g., 12345,67890)
accountByAccountIdsstringAccount IDs separated by commas (e.g., acc1,acc2)
accountCreatedRangestringDate range for account creation (e.g., 2024-01-03,2024-06-04)
accountTenantIdsstringTenant IDs separated by commas (e.g., tenant1,tenant2)
accountTypestringAvailable values: USER, BUSINESS, TENANT
accountDisplayTypestringDefault is LIST. Available values: LIST, PAGING
searchstringSearch query
orderstringAvailable values: ASC, DESC
pagestringPage number
limitstringNumber of records per page

Example​

GET /api/v1/accounts?accountByAccountNumbers=12345,67890&accountByAccountIds=acc1,acc2&accountCreatedRange=2024-01-03,2024-06-04&accountTenantIds=tenant1,tenant2&accountType=USER&accountDisplayType=LIST&search=query&order=ASC&page=1&limit=10

Response Code: 200 - OK​

Description​

List of accounts retrieved successfully.

Response Fields​

FieldTypeDescription
statusbooleanIndicates if the operation was successful
statusCodeintegerStatus code
messagestringResponse message
dataobjectData related to the accounts
errorsarrayList of error messages, if any

Example​

{
"status": true,
"statusCode": 0,
"message": "Accounts retrieved successfully",
"data": [
{
"accountId": "acc1",
"accountNumber": "12345",
"accountType": "USER",
"accountCreatedDate": "2024-01-03",
"tenantId": "tenant1"
},
{
"accountId": "acc2",
"accountNumber": "67890",
"accountType": "BUSINESS",
"accountCreatedDate": "2024-02-14",
"tenantId": "tenant2"
}
],
"errors": []
}

Headers​

Content-TypeValue
apiKey{{apiKey}}
useridstring

🔑 Authentication bearer​

ParamValueType
token{{accessCode}}string

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


curl --request GET \ 
--url /api/v1/accounts \
--header 'accept: application/json' \
--header 'content-type: application/json'

RESPONSE


Click Try It! to start a request and see the response here!